/**
 * 业务模型关系的事件，比如继承，组合，聚合，关联，依赖
 */
package indi.zjh.dp.orm;

public class BusinessStructEvent {
	// 关联关系种类
	public static final int ONE_TO_ONE = 0;
	public static final int ONE_TO_MANY = 1;
	public static final int MANY_TO_MANY = 2;
	// 继承类型
	public static final int SON_TO_FATHER = 3; // subject为空， object代表最低子类
	public static final int FATHER_TO_SON = 4; // subject代表最高父类， object为空
	
	// 组合关系类型
	public static final int CONTAINING = 5; // 主语包含宾语
	
	// 每个业务类初始化事件
	public static final int INIT = 8888;// subject, object为空, 每个业务类会回调一次
	// 主语
	protected RelationClass subject = null;
	// 宾语
	protected RelationClass object = null;
	
	// 类型
	protected int type;

	public RelationClass getSubject() {
		return subject;
	}

	public void setSubject(RelationClass subject) {
		this.subject = subject;
	}

	public RelationClass getObject() {
		return object;
	}

	public void setObject(RelationClass object) {
		this.object = object;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	
}
